.class public Lcom/waiqin365/base/login/b/a/ap;
.super Lcom/waiqin365/base/login/b/e;


# instance fields
.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Lcom/waiqin365/base/login/c/l;


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x7f

    invoke-direct {p0, v0}, Lcom/waiqin365/base/login/b/e;-><init>(I)V

    new-instance v0, Lcom/waiqin365/base/login/c/l;

    invoke-direct {v0}, Lcom/waiqin365/base/login/c/l;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/base/login/b/a/ap;->e:Lcom/waiqin365/base/login/c/l;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Z
    .locals 3

    :try_start_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "code"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string/jumbo v1, "code"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/base/login/b/a/ap;->c:Ljava/lang/String;

    :cond_0
    const-string/jumbo v1, "message"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string/jumbo v1, "message"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/base/login/b/a/ap;->d:Ljava/lang/String;

    :cond_1
    const-string/jumbo v1, "data"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    const-string/jumbo v1, "data"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    const-string/jumbo v1, "yes_star"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/base/login/b/a/ap;->e:Lcom/waiqin365/base/login/c/l;

    const-string/jumbo v2, "yes_star"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/login/c/l;->a:Ljava/lang/String;

    :cond_2
    const-string/jumbo v1, "ranking_star"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/base/login/b/a/ap;->e:Lcom/waiqin365/base/login/c/l;

    const-string/jumbo v2, "ranking_star"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/login/c/l;->b:Ljava/lang/String;

    :cond_3
    const-string/jumbo v1, "yes_visited"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/base/login/b/a/ap;->e:Lcom/waiqin365/base/login/c/l;

    const-string/jumbo v2, "yes_visited"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/login/c/l;->c:Ljava/lang/String;

    :cond_4
    const-string/jumbo v1, "ranking_visited"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v1, p0, Lcom/waiqin365/base/login/b/a/ap;->e:Lcom/waiqin365/base/login/c/l;

    const-string/jumbo v2, "ranking_visited"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/base/login/c/l;->d:Ljava/lang/String;

    :cond_5
    const-string/jumbo v1, "cycle_refresh_time"

    invoke-virtual {v0, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    iget-object v1, p0, Lcom/waiqin365/base/login/b/a/ap;->e:Lcom/waiqin365/base/login/c/l;

    const-string/jumbo v2, "cycle_refresh_time"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/base/login/c/l;->e:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_6
    const/4 v0, 0x1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    const/4 v0, 0x0

    goto :goto_0
.end method
